﻿using System;
using System.Collections.Generic;
using System.Text;

namespace havefun
{
    class Matrix
    {
        public float m11 = 1;
        public float m12 = 0;
        public float m13 = 0;
        public float m14 = 0;
        public float m21 = 0;
        public float m22 = 1;
        public float m23 = 0;
        public float m24 = 0;
        public float m31 = 0;
        public float m32 = 0;
        public float m33 = 1;
        public float m34 = 0;
        public Vector3 Transform(Vector3 src)
        {
            return new Vector3(src.x * m11 + src.y * m12 + src.z * m13 + m14,
                src.x * m21 + src.y * m22 + src.z * m23 + m24,
                src.x * m31 + src.y * m32 + src.z * m33 + m34);
        }
    }
}
